export const CollapsedReducer = (
  prevState = {
    isCollapsed: false,
  },
  action
) => {
  let { type } = action
  switch (type) {
    case 'change-Collapsed':
      let newState = {...prevState}
      newState.isCollapsed = !newState.isCollapsed
      return newState
    default:
      return prevState
  }
}
